# -*- coding: utf-8 -*-
from utils.operators.external_dag_sensor import ExternalDagSensorAsync
from datetime import timedelta

jms_dwd__dwd_tmsnew_shipment_stop_union_base_hi_ai_ageing_cusc_hi = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tmsnew_shipment_stop_union_base_hi_ai_ageing_cusc_hi',
    external_dag_id='jms_hi',
    external_task_id='jms_dwd__dwd_tmsnew_shipment_stop_union_base_hi',
    external_execution_date_time='{{ execution_date | hour_add(11) | cst_hour_ds }}:10:00',
    execution_delta_time_unit='hours',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='rongguangfan@jtexpress.com',
)

jms_dwd__dwd_tmsnew_shipment_union_base_hi_ai_ageing_cusc_hi = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tmsnew_shipment_union_base_hi_ai_ageing_cusc_hi',
    external_dag_id='jms_hi',
    external_task_id='jms_dwd__dwd_tmsnew_shipment_union_base_hi',
    external_execution_date_time='{{ execution_date | hour_add(11) | cst_hour_ds }}:10:00',
    execution_delta_time_unit='hours',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='rongguangfan@jtexpress.com',
)

jms_dwd__dwd_tab_barscan_collect_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tab_barscan_collect_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_tab_barscan_collect_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_tab_barscan_sign_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tab_barscan_sign_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_tab_barscan_sign_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_tab_barscan_taking_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tab_barscan_taking_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_tab_barscan_taking_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_sqs_registration_problem_piece_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_sqs_registration_problem_piece_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_sqs_registration_problem_piece_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_work_order_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_work_order_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_work_order_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_yl_oms_oms_waybill_incre_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_yl_oms_oms_waybill_incre_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_yl_oms_oms_waybill_incre_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_tab_barscan_sitearrival_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tab_barscan_sitearrival_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_tab_barscan_sitearrival_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_tab_barscan_deliver_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_tab_barscan_deliver_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_tab_barscan_deliver_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_work_order_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_work_order_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_work_order_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)

jms_dwd__dwd_project_work_order_base_dt = ExternalDagSensorAsync(
    task_id='jms_dwd__dwd_project_work_order_base_dt',
    external_dag_id='jms',
    external_task_id='jms_dwd__dwd_project_work_order_base_dt',
    external_execution_date_time='{{ execution_date | hour_add(12) | date_add(-1) | cst_ds }} 00:15:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    execution_timeout=timedelta(minutes=60),
    email='jarl.huang@jtexpress.com',
)